$(function() {
    $.menuSelector('#system_user');

    var $dt = Ifonly.DataTable({
        searching: false,
        c_filter: true,
        ordering: true,
        ajax: {
            url : g.ctx + '/system/user/dt',
            data: function(d) {
                d['aaa'] = 'aaa';
            }
        },
        "order": [
            [0, null] //第一列排序图标改为默认
        ],
        "columns": [
            Ifonly.DTKit.checkbox(),
            { "data": "username", "name": "u.username" },
            { "data": "real_name", "name": "u.real_name" },
            { "data": "birthday" , "name": "u.birthday" },
            {
                "data": "status",
                render: Ifonly.DTKit.render('#status-template')
            },
            { "data": "role_names" , "name": "t.role_names" },
            {
                "data": "id",
                "orderable": false,
                render: Ifonly.DTKit.render()
            }
        ]
    });
});